package com.xsd.builder;

/**
 * @Description: 建房指挥者
 * @Author: zhoufuzong
 * @Created: 2021-02-13 21:39:00
 * @Version: 1.1.0
 */

public class HouseDirect {
    HouseBuilder builder = null;

    public HouseDirect(HouseBuilder builder){
        this.builder = builder;
    }

    public House constructureHouse(){
        builder.buildBasic();
        builder.buildWalls();
        builder.buildRoofed();
        return builder.buildHouse();
    }

    public void setBuilder(HouseBuilder builder) {
        this.builder = builder;
    }
}
